import axios from '@/libs/request/axios'

/* ************身份信息变更************ */
// 身份信息申请或暂存过的案件列表
export const getManageCustInfoChangeList = (params) => {
    return axios.request({
        url: `/contractManage/custInfoChange/getManageCustInfoChangeList`,
        method: 'POST',
        data: params
    })
};
// 查询合同客户的原身份信息
export const findOldCustInfo = (params) => {
    return axios.request({
        url: '/contractBasic/oldCustInfo/findOldCustInfo',
        method: 'post',
        data: params,
    })
}
// 草稿状态下的身份信息数据 已点保存的数据 custInfoChange/findCustInfoDetial
export const findCustInfoDetial = (params) => {
    return axios.request({
        url: '/contractManage/custInfoChange/findCustInfoDetial',
        method: 'post',
        data: params,
    })
}
// 客户身份信息变更 保存
export const changeContractCustInfo = (params) => {
    return axios.request({
        url: '/contractManage/custInfoChange/changeContractCustInfo',
        method: 'post',
        data: params,

    })
}
// 客户身份信息变更 提交
export const submitContactManage = (params) => {
    return axios.request({
        url: '/contractManage/custInfoChange/submitCustInfoManage',
        method: 'post',
        data: params,
    })
}

// 客户身份信息变更 审批
export const saveProposalApplicationInfo = (params) => {
    return axios.request({
        url: '/contractManage/custInfoChange/saveProposalApplicationInfo',
        method: 'post',
        data: params,
    })
}

// 客户身份信息变更 删除
export const delCustInfo = (caseNo) => {
    return axios.request({
        url: '/contractManage/custInfoChange/delCustInfo',
        method: 'post',
        data: {
            caseNo
        },
    })
}

// // contractManage/bankCardChange/saveProposalApplicationInfo
// // 一键通过/拒绝
// export const passOrReject = (data) => {
//     return axios.request({
//         url: '/contractManage/bankCardChange/saveProposalApplicationInfo',
//         method: 'post',
//         data: data,
//     })
// }
export const getOCRCustInfo = (data) => {
    return axios.request({
        url: '/contractManage/custInfoChange/getOCRCustInfo',
        method: 'post',
        data: data,
    })
}
